<?php get_header(); ?>
<div id="text">
    <h2>Search results for "<?php the_search_query(); ?>"</h2>
	<?php if (have_posts()) : ?>
	<?php while (have_posts()) : the_post(); ?>
	<div class="post" id="post-<?php the_ID(); ?>">
	<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    	<div class="pub">Posted by <?php the_author(); ?> on <?php the_time('M j, Y') ?> under <?php the_category(', ') ?></div>
        <?php the_content('Read more...'); ?>
     <div class="comm"><?php comments_popup_link('Comments (0)', 'Comments (1)', 'Comments (%)'); ?><?php edit_post_link(' Edit'); ?></div>
     	<div class="cleaner"></div>
</div>
	<?php endwhile; ?>
<div id="nav">
<div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
</div>
	<?php else : ?>
       <div class="post">
        <h2>Not Found</h2>
		<p>Sorry, but you are looking for something that isn't here.</p>
        </div>
<?php endif; ?>
</div>
<?php get_footer(); ?>